import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/vue-admin-template/role/list',
    method: 'get',
    params
  }).then(res => res.data)
}

export function getRoleInfo(params) {
  return request({
    url: '/vue-admin-template/role/getRoleInfo',
    method: 'get',
    params
  }).then(res => res.data)
}

export function saveRole(params) {
  return request({
    url: '/vue-admin-template/role/saveRole',
    method: 'post',
    params
  }).then(res => res.data)
}

export function getRoleMenu(params) {
  return request({
    url: '/vue-admin-template/role/getRoleMenu',
    method: 'get',
    params
  }).then(res => res.data)
}

export function saveMenu(params) {
  return request({
    url: '/vue-admin-template/role/saveMenu',
    method: 'post',
    params
  }).then(res => res.data)
}

